{% extends "layout.html" %}


{% block body %}
<h3>自动分类V2：学习集的选择</h3>
<p>学习集是指包含着已经过验证的数据的项目 &nbsp;<span data-toggle="tooltip" data-placement="right" data-html="true" title="
<p style='text-align: left'>你可以运行子集工具: :<br><ul style='text-align: left'>
<li>创建一个你后续会改进的学习集
<li>使用项目中随机有限数量的对象检查验证结果</ul></p>"
class="glyphicon glyphicon-question-sign"></span></p>

{{ PreviousTxt |safe }}

<table><tr><td width='400px'><button class='btn btn-primary' onclick='SubmitProjectSelection();'>继续使用选择的项目</button>
</td><td>
<div class="panel panel-default" style='display: inline-block; width: 400px;margin-bottom: 0;'>
  <div class="panel-body">
    <form method="post">
      <table>
        <tbody><tr>
          <td>共同特征 &ge;  </td>
          <td><input style="width: 100px;" name="filt_featurenbr" id="filt_featurenbr" value="{{ request.form.get('filt_featurenbr','10') }}" type="text"></td>

        </tr><tr>
          <td>用标题过滤 :</td>
          <td><input style="width: 100px;" name="filt_title" id="filt_title" value="{{ request.form.get('filt_title','') }}" type="text"></td>
          <td rowspan="3" style="vertical-align: top"><button type="submit" class="btn btn-primary">搜索</button></td>
        </tr>
        <tr>
          <td>仪器 : </td>
          <td><input style="width: 100px;" name="filt_instrum" id="filt_instrum" value="{{ request.form.get('filt_instrum','') }}" type="text">
                <span class="glyphicon glyphicon-question-sign" onclick="DispInstrumList();" style="cursor: pointer;"></span></td>
        </tr>
      </tbody></table>
    </form>
  </div></div></td></tr></table>
        <table class='table table-bordered table-verycondensed table-hover' style='margin-left: 10px;width: 95%'>
                <tr><th style='width:20px'></th>
                <th># - 项目名称</th><th style='width:100px'># 已验证.</th><th style='width:100px'># 匹配特征</th>
                <th style='width:100px'>CNN网络</th></tr>
  {{ TblBody|safe }}
</table>
<script>
$(function () {  $('[data-toggle="tooltip"]').tooltip()})

function SubmitProjectSelection() {
  var srclst=$(".selproj:checked").map(function(){return $(this).data('prjid');}).get().join(',');
  PostDynForm("?{{ url|safe }}",{src:srclst});
}
  function DispInstrumList(projid){
  $("#PopupDetails .modal-content").html("Loading...");
  $('#PopupDetails .modal-lg').css('width',$(window).width()/2);
  $('#PopupDetails').modal({});
  var url="/search/instrumlist"
  if(typeof (projid)!="undefined")
    url+="?projid="+projid
  $("#PopupDetails .modal-content").load(url);
}
</script>
<div id="PopupDetails" class="modal " tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      ...
    </div>
  </div>
</div>
{% endblock %}